home *** CD-ROM | disk | FTP | other *** search
/ Web Designer 98 (Professional) / WebDesigner 1.0.iso / tutorials / tutorial / name.txt < prev    next >
Encoding:
Text File  |  1997-06-15  |  617 b   |  23 lines

  1. <script language="JavaScript">
  2. <!-- Hide the script from old browsers --
  3.  
  4. // Michael P. Scholtis (mpscho@planetx.bloomu.edu)
  5. // All rights reserved.  July 28, 1996
  6. // You may use this JavaScript example as you see fit, as long as the
  7. // information within this comment above is included in your script.
  8.   
  9.  
  10. var namePrompt = prompt("Please enter your name.)","");
  11. function dispname (namePrompt){ 
  12.         document.write(" "+namePrompt+" ");
  13. }
  14.  
  15. // --End Hiding Here -->
  16. </script>
  17. <font size=4 color=red>Welcome to my home page </font>
  18. <SCRIPT LANGUAGE="JavaScript">
  19. <!--
  20.    {dispname(namePrompt);} 
  21. //-->
  22. </SCRIPT><br>
  23.